package com.jbp.service.impl;

import com.jbp.dao.PrizePoolRecordDao;
import com.jbp.model.PrizePoolRecord;
import com.jbp.service.PrizePoolRecordService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jbp.utils.PageUtils;
import com.jbp.utils.Query;



@Service
public class PrizePoolRecordServiceImpl extends ServiceImpl<PrizePoolRecordDao, PrizePoolRecord> implements PrizePoolRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PrizePoolRecord> page = this.page(
                new Query<PrizePoolRecord>().getPage(params),
                new QueryWrapper<PrizePoolRecord>()
        );

        return new PageUtils(page);
    }

    @Override
    public Integer savePoolRecord(List<PrizePoolRecord> prizePoolRecord) {
        return baseMapper.savePoolRecord(prizePoolRecord);
    }

}
